package com.starmark.gateway.springcloud.provider.response;

import org.springframework.http.HttpStatus;

/**
 * 成功返回数据
 *
 * @author starmark
 * <p>
 * 2018年5月26日
 */
public class SuccessResponseData extends Response {


    private Object data;


    public static SuccessResponseData newInstance() {
        return new SuccessResponseData();
    }

    public static SuccessResponseData newInstance(Object data) {
        return new SuccessResponseData(data);
    }

    public SuccessResponseData() {
        super(HttpStatus.OK);
    }

    public SuccessResponseData(Object data) {
        super(HttpStatus.OK);
        this.data = data;
    }


    public Object getData() {
        return this.data;
    }

    public void setData(Object data) {
        this.data = data;
    }


}